package cz.mzk.funnylib;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.datasource.DriverManagerDataSource;

/**
 *
 * @author xrosecky
 */
public class Base {

    public static JdbcTemplate getTemplate() {
        DriverManagerDataSource dataSource = new DriverManagerDataSource();
        dataSource.setUrl("jdbc:mysql://localhost:3306/funnylib");
        dataSource.setUsername("funnylib");
        dataSource.setPassword("funnylib");
        return new JdbcTemplate(dataSource);
    }
}
